Kalev Lember [Thu, 8 Aug 2013 06:06:27 +0000 (08:06 +0200)]
listbox: Reorder code
This just moves the gtk_list_box_insert function to where the rest of the
public API is defined.
https://bugzilla.gnome.org/show_bug.cgi?id=705558
Kalev Lember [Wed, 7 Aug 2013 10:36:03 +0000 (12:36 +0200)]
listbox: Implement gtk_list_box_insert()
... to make it possible to insert rows in the middle of the list without having
to fiddle with the sort functions. One of the first users is going to be Glade.
https://bugzilla.gnome.org/show_bug.cgi?id=705558
Victor Ibragimov [Wed, 7 Aug 2013 16:53:38 +0000 (21:53 +0500)]
Tajik translation updated
Jasper St. Pierre [Wed, 7 Aug 2013 08:57:33 +0000 (04:57 -0400)]
gtkiconview: Take padding into account when getting the cursor hotspot
This makes the icon view look completely seamless when dragging.
https://bugzilla.gnome.org/show_bug.cgi?id=705605
Jasper St. Pierre [Wed, 7 Aug 2013 08:56:45 +0000 (04:56 -0400)]
gtkiconview: Remove the border and background from drag icons
This doesn't look good when combined with rounded corners on
selected items.
https://bugzilla.gnome.org/show_bug.cgi?id=705605
Jasper St. Pierre [Wed, 7 Aug 2013 12:22:51 +0000 (08:22 -0400)]
gtkdnd: Clean up the doc comment of gtk_drag_begin
Jasper St. Pierre [Wed, 7 Aug 2013 15:46:58 +0000 (11:46 -0400)]
gtkstylecontext: Remove some dead code when rendering layouts
Ignacio Casal Quinteiro [Wed, 7 Aug 2013 08:24:14 +0000 (10:24 +0200)]
headerbar: use a more standard headerbar look for the close button
https://bugzilla.gnome.org/show_bug.cgi?id=705601
Alexander Larsson [Wed, 7 Aug 2013 11:32:38 +0000 (13:32 +0200)]
gtkdnd: Use surface based cursor APIs
This allows things to correctly scale things on HiDPI screens.
Alexander Larsson [Wed, 7 Aug 2013 10:18:38 +0000 (12:18 +0200)]
gdk: Add gdk_cursor_new_from_surface
We need this to be able to handle scaled cursor images.
We implement the new _from_pixbuf by converting to a surface and
assuming the scale was 1.
Alexander Larsson [Tue, 6 Aug 2013 14:21:05 +0000 (16:21 +0200)]
gdk: Add gdk_cursor_get_surface()
We want a surface so we can properly represent the scale factor for it.
All backends are converted to use surfaces and we reimplement the
backwards compat code in the generic code.
Alexander Larsson [Tue, 6 Aug 2013 14:18:13 +0000 (16:18 +0200)]
gdk_pixbuf_get_from_surface: Avoid copying if source is image surface
If the source surface is an image surface we don't need to coerce
it to one.
Alexander Larsson [Wed, 7 Aug 2013 08:52:12 +0000 (10:52 +0200)]
gtkiconhelper: Add _gtk_icon_helper_ensure_surface to private header
Jasper St. Pierre [Wed, 7 Aug 2013 10:13:09 +0000 (06:13 -0400)]
examples: Use git.mk
Paolo Borelli [Tue, 6 Aug 2013 12:57:22 +0000 (14:57 +0200)]
Add gtk_list_box_prepend
Add a convenience method for prepending rows to a list box without
having to fiddle with a sort function.
https://bugzilla.gnome.org/show_bug.cgi?id=705558
Marek Černocký [Tue, 6 Aug 2013 18:43:12 +0000 (20:43 +0200)]
Updated Czech translation
Chao-Hsiung Liao [Tue, 6 Aug 2013 11:56:09 +0000 (19:56 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)
Colin Walters [Tue, 6 Aug 2013 10:21:52 +0000 (11:21 +0100)]
accessibility-dump: Update expected contents
Colin Walters [Tue, 6 Aug 2013 10:19:54 +0000 (11:19 +0100)]
accessibility-dump: Print diff by default
There's just no reason not to; it makes things less tedious to
run from the command line.
Sébastien Wilmet [Mon, 5 Aug 2013 18:37:54 +0000 (20:37 +0200)]
Improve doc of gtk_text_tag_table_remove()
It's obvious, but it's better to say it.
https://bugzilla.gnome.org/show_bug.cgi?id=705529
Alexander Larsson [Mon, 5 Aug 2013 14:49:18 +0000 (16:49 +0200)]
gtkdnd: Use RGBA windows when dragging if possible
If we have rgba visuals and a composited screen we should
just use a RGBA window rather than shaped windows.
Alexander Larsson [Mon, 5 Aug 2013 14:11:18 +0000 (16:11 +0200)]
css: Inherit device scale in _gtk_css_image_get_surface
To handle hidpi support we need to make sure we don't
downscale scaled css images.
Note: If cairo_surface_create_similar starts doing this
by itself we need to back this out.
William Jon McCann [Mon, 29 Jul 2013 16:06:20 +0000 (12:06 -0400)]
Add autoscroll when dragging past boundary of range
A problem with the zoom scroll mode is that you have to restart
if you hit the bottom of the screen before you hit the bottom
of your document.
This commit adds an autoscroll feature to the zoom scroll: if
you move outside the window while in zoom scroll mode, we keep
scrolling in the direction you were going until you let go
of the mouse button.
https://bugzilla.gnome.org/show_bug.cgi?id=704703
William Jon McCann [Thu, 18 Jul 2013 21:35:42 +0000 (17:35 -0400)]
Add press and hold support to set zoom scroll mode
Triggering zoom scroll mode by Shift click was too much
of an easter egg. It also requires using keyboard and
mouse together, which is hard to do for many users.
Instead, we now trigger zoom scroll mode by click-and-hold
(or touch-and-hold).
https://bugzilla.gnome.org/show_bug.cgi?id=704703
William Jon McCann [Wed, 24 Jul 2013 23:48:11 +0000 (19:48 -0400)]
Add mouse pointer support to press and hold
The internal class GtkPressAndHold was so far only
reacting to touch events. But in most cases where
a touch-and-hold or 'long press' pattern is useful,
click-and-hold can also be used.
This patch makes GtkPressAndHold react to mouse
clicks as well.
https://bugzilla.gnome.org/show_bug.cgi?id=704703
Benjamin Berg [Fri, 2 Aug 2013 08:58:52 +0000 (10:58 +0200)]
Depend on cairo 1.12 (bug #705215)
This is required for cairo_surface_create_similar_image.
Matthias Clasen [Sat, 3 Aug 2013 23:25:26 +0000 (01:25 +0200)]
GtkHeaderBar: optionally add a close button
Add a boolean property that controls whether a window close button
will be shown in the header bar or not. Doing this in the toolkit
will ensure consistency of the visual apperance.
https://bugzilla.gnome.org/show_bug.cgi?id=702971
Fran Diéguez [Sun, 4 Aug 2013 17:54:00 +0000 (19:54 +0200)]
Updated Galician translations
Benjamin Otte [Sat, 3 Aug 2013 17:00:53 +0000 (19:00 +0200)]
range: Remove dead assignment
Gabor Kelemen [Sun, 4 Aug 2013 14:44:36 +0000 (16:44 +0200)]
Stop damned-lies complaining about missing .ui/.ui.h files
Rob Bradford [Sun, 4 Aug 2013 13:36:01 +0000 (14:36 +0100)]
wayland: Dispatch pending events before entering poll
If we don't dispatch the pending events then we can enter poll with events
still requiring to be processed and which can then lead to us deadlocking
there.
Rob Bradford [Sun, 4 Aug 2013 13:01:10 +0000 (14:01 +0100)]
wayland: Only try and process keyboard events when focussed
When combining Clutter with GTK+ we can receive events for surfaces which in
the client side we do not have focussed.
Rob Bradford [Sun, 4 Aug 2013 13:01:10 +0000 (14:01 +0100)]
wayland: Only try and process pointer events when focussed
When combining Clutter with GTK+ we can receive events for surfaces which in
the client side we do not have focussed.
Rob Bradford [Sun, 4 Aug 2013 12:32:41 +0000 (13:32 +0100)]
wayland: Only process the event if it's for a GdkWindow
When we combine GTK with Clutter we will receive events for both surfaces that
we have created as well as those created by Clutter.
Gabor Kelemen [Sun, 4 Aug 2013 12:32:29 +0000 (14:32 +0200)]
Updated Hungarian translation
Gabor Kelemen [Sun, 4 Aug 2013 10:55:17 +0000 (12:55 +0200)]
Updated Hungarian translation
Marek Černocký [Sun, 4 Aug 2013 07:26:43 +0000 (09:26 +0200)]
Updated Czech translation
Cosimo Cecchi [Sun, 4 Aug 2013 07:19:03 +0000 (09:19 +0200)]
themingengine: use gtk_icon_source_get_state_wildcarded()
A recent refactor of this code missed a check for the wildcarded state
on the icon source.
Matthias Clasen [Sat, 3 Aug 2013 23:04:10 +0000 (01:04 +0200)]
GtkTreeView: Remove a dead assignment
This was found by the clang static analyzer.
Matthias Clasen [Sat, 3 Aug 2013 22:59:41 +0000 (00:59 +0200)]
Wayland: Add a missing break statement
Found by the clang static analyzer.
Aurimas Černius [Sat, 3 Aug 2013 20:37:04 +0000 (23:37 +0300)]
Updated Lithuanian translation
Victor Ibragimov [Sat, 3 Aug 2013 19:37:17 +0000 (00:37 +0500)]
Tajik translation updated
Matthias Clasen [Sat, 3 Aug 2013 16:28:45 +0000 (18:28 +0200)]
Remove assertions that are no longer true
The GtkBuilder infobar tests were asserting facts about the
internal structure of the widget that are no longer true.
Kjartan Maraas [Sat, 3 Aug 2013 16:22:21 +0000 (18:22 +0200)]
Updated Norwegian bokmål translation
Cosimo Cecchi [Sat, 3 Aug 2013 16:03:52 +0000 (18:03 +0200)]
iconhelper: clear the surface on invalidation
This was missed during the pixbuf->surface conversion, so when the state
changed we were not recreating a new surface for it.
Matthias Clasen [Sat, 3 Aug 2013 15:22:42 +0000 (17:22 +0200)]
Add .ui.h files to git
These files are generated, so adding them to git is somewhat
icky, but it helps translators who currently can't use intltool-update
on a fresh git checkout.
Alexander Larsson [Sat, 3 Aug 2013 14:51:28 +0000 (16:51 +0200)]
x11: send monitors-changed when screen scale changes
Alexander Larsson [Sat, 3 Aug 2013 14:49:38 +0000 (16:49 +0200)]
x11: Update root window scale when the screen scale changes
Matthias Clasen [Sat, 3 Aug 2013 13:34:46 +0000 (15:34 +0200)]
Update expected output for the infobar a11y test
This changed due to the recent GtkInfoBar revealer changes.
William Jon McCann [Sat, 3 Aug 2013 12:59:40 +0000 (14:59 +0200)]
Fix layout of infobar
Make sure the close button is right aligned and centered vertically.
William Jon McCann [Sat, 3 Aug 2013 10:18:54 +0000 (12:18 +0200)]
demo: add a multi-line infobar example
Christian Hergert [Sat, 3 Aug 2013 13:13:27 +0000 (15:13 +0200)]
searchbar: use gtk_search_bar_connect_entry() in documentation.
Matthias Clasen [Wed, 31 Jul 2013 16:40:52 +0000 (18:40 +0200)]
Add a revealer to GtkInfoBar
Make GtkInfoBar slide in and out as it is shown or hidden.
https://bugzilla.gnome.org/show_bug.cgi?id=704334
Matthias Clasen [Sat, 3 Aug 2013 07:03:14 +0000 (09:03 +0200)]
GtkFileChooserDefault: Remove redundancy
Don't specify packing properties for internal children.
This doesn't work unless the internal children are actually
direct children of the container (which we are about to
change for GtkInfoBar). Also, it is redundant, since we
just set the properties to the values they already have
anyway.
Matthias Clasen [Sat, 3 Aug 2013 06:51:40 +0000 (08:51 +0200)]
Be more forgiving about child properties
Packing properties in ui files are parsed and handled by
the container, which assumes that the child is a direct
descendant. For internal children, this is inconvenient,
because we don't want to reconstruct the entire internal
structure between the container and the child in the ui
file.
It would be best to not specify packing properties
in that case, but since existing ui files do this for
GtkInfoBar and we are about to change the internal
structure of GtkInfoBar, be more forgiving here.
Matthias Clasen [Fri, 2 Aug 2013 15:56:31 +0000 (17:56 +0200)]
Revert "Add a revealer to GtkInfoBar"
This reverts commit
1198ffb0bc195c6044d4d0efd864ccf093d637c7.
This change needs more work, to avoid breaking existing
ui files.
Bastien Nocera [Fri, 2 Aug 2013 14:42:41 +0000 (16:42 +0200)]
Revert "Disable primary paste by default"
This reverts commit
fbbcb5c01b5d171ddb1c5f5b298779cfe830c441.
We will be doing this in gnome-settings-daemon itself instead,
as some X11 based platforms using GTK+ will want to override this.
Alberto Ruiz [Fri, 2 Aug 2013 13:56:54 +0000 (15:56 +0200)]
fontchooser: set the minimum size of the spinner to 1
Alberto Ruiz [Fri, 2 Aug 2013 13:51:33 +0000 (15:51 +0200)]
fontchoser: Fix slider position update when switching from fonts with different recommended sizes
Jasper St. Pierre [Tue, 9 Jul 2013 18:50:32 +0000 (14:50 -0400)]
gdkkeys-x11: Remove workaround code for Sun Microsystems X server
Xsun is no longer shipped to customers, and Oracle/Sun's Xorg distribution
uses "Sun Microsystems" as the vendor name, so this hack is incorrect in
the more common recent cases.
Ryan Lortie [Thu, 1 Aug 2013 21:06:00 +0000 (23:06 +0200)]
gtkicontheme: check for GdkPixbuf first
We checked for G_IS_LOADABLE_ICON() before GDK_IS_PIXBUF().
Since we made GdkPixbuf implement GLoadableIcon, the special case for
pixbufs is never used, and the much much slower GLoadableIcon path is
taken instead. Move the GdkPixbuf one to be first to fix that.
https://bugzilla.gnome.org/show_bug.cgi?id=705320
Fran Diéguez [Fri, 2 Aug 2013 11:16:33 +0000 (13:16 +0200)]
Updated Galician translations
Chun-wei Fan [Fri, 2 Aug 2013 10:47:12 +0000 (18:47 +0800)]
MSVC builds: Enhance Binary Installation
Update the gtk-install-bin property sheets so that it does not "install"
the wrong GDK DLL/LIB when building a broadway-enabled GDK
when the non-Broadway GDK had been previously built.
Matthias Clasen [Fri, 2 Aug 2013 09:58:35 +0000 (11:58 +0200)]
Typo fix
Chun-wei Fan [Fri, 2 Aug 2013 09:29:23 +0000 (17:29 +0800)]
build/win32/vs9/Makefile.am: Fix typo
Chun-wei Fan [Fri, 2 Aug 2013 09:05:57 +0000 (17:05 +0800)]
Add Visual Studio 2010 Build Support for Broadway
Add the Visual Studio 2010 projects to build the GDK Broadway backend, just
like the Visual Studio 2008 project files in the last commit. Similarly,
split up the property sheets so that they are easier to maintain and can
be made more flexible for different build types. Also remove some unneeded
stuff from some of these items.
Also, fix the filter file completion for GTK, as a source file was excluded
for that and this was overlooked as it seemingly did not cause any trouble.
Chun-wei Fan [Fri, 2 Aug 2013 03:20:19 +0000 (11:20 +0800)]
Add Visual Studio Build Support for Broadway
-Add Visual Studio 2008 projects and pre-configured gdkconfig.h for
Broadway builds
-Decouple the Visual Studio property sheets, to simplify maintenance and
enhance flexibility for different builds
Visual Studio 2010 projects updates will follow later.
Matthias Clasen [Thu, 1 Aug 2013 22:56:56 +0000 (00:56 +0200)]
Trivial rewording
Matthias Clasen [Thu, 1 Aug 2013 22:54:00 +0000 (00:54 +0200)]
Make examples use search-changed signal
This updates the examples for the new GtkSearchEntry api.
Matthias Clasen [Thu, 1 Aug 2013 22:52:48 +0000 (00:52 +0200)]
Update template api in one more place
The example fragments that are directly embedded in the docs
were still using the old api.
Matthias Clasen [Wed, 31 Jul 2013 16:40:52 +0000 (18:40 +0200)]
Add a revealer to GtkInfoBar
Make GtkInfoBar slide in and out as it is shown or hidden.
https://bugzilla.gnome.org/show_bug.cgi?id=704334
Matthias Clasen [Thu, 1 Aug 2013 08:55:18 +0000 (10:55 +0200)]
Avoid a compiler warning
Piotr Drąg [Wed, 31 Jul 2013 17:51:12 +0000 (19:51 +0200)]
Updated POTFILES.in
Matthias Clasen [Wed, 31 Jul 2013 16:42:10 +0000 (18:42 +0200)]
gtk3-demo: Improve the infobar demo
Add buttons that allow to show and hide each info bar.
Yaron Shahrabani [Wed, 31 Jul 2013 10:09:21 +0000 (13:09 +0300)]
Updated Hebrew translation
Yaron Shahrabani [Wed, 31 Jul 2013 09:05:11 +0000 (12:05 +0300)]
Updated Hebrew translation.
Erik van Pienbroek [Sat, 13 Jul 2013 20:54:09 +0000 (22:54 +0200)]
Don't use UNIX-specific printer objects on non-UNIX
https://bugzilla.gnome.org/show_bug.cgi?id=704173
Benjamin Otte [Wed, 31 Jul 2013 01:02:08 +0000 (03:02 +0200)]
x11: Don't crash when NULL eometry hints are set
Fixes crashers in gnome-panel.
Michael Hutchinson [Tue, 2 Jul 2013 23:04:36 +0000 (19:04 -0400)]
Bug 705181: Fix annoying beeping introduced by Mac IME
NSTextInputClient should not chain unhandled commands to super
(cherry picked from commit
91bcca6f395ba6d5aa5a688d6d629633bbea539f)
Matthias Clasen [Tue, 30 Jul 2013 03:55:27 +0000 (23:55 -0400)]
post-release version bump
Matthias Clasen [Tue, 30 Jul 2013 03:03:33 +0000 (23:03 -0400)]
3.9.10
Matthias Clasen [Tue, 30 Jul 2013 00:51:39 +0000 (20:51 -0400)]
X11: Fix the cut-off for too large windows
We can only handle 2^15-1 pixels, not 2^16-1.
Pointed out by Morten Welinder.
https://bugzilla.gnome.org/show_bug.cgi?id=698758
Chun-wei Fan [Mon, 29 Jul 2013 06:53:00 +0000 (14:53 +0800)]
gtkprintoperation-win32.c: Drop unneeded include
Don't include gtkstock.h as it's not really needed here, and it has been
recently deprecated.
https://bugzilla.gnome.org/show_bug.cgi?id=705060
Carlos Garnacho [Fri, 26 Jul 2013 15:45:19 +0000 (17:45 +0200)]
ime: Add builtin handling of dead keys
The IME input method has been both ignoring keypresses of
non-spacing characters (ditching these as non displayable),
and not letting IME do anything about those.
Even though, the sparse documentation on IMM/IME seems to
hint that applications can't pipe non-spacing characters to
the input method manager, and experimentation shown that
those characters are indeed handled differently than how
it'd be expected.
Then, add basic handling of dead keys on the IME input method
itself , as it's not mutually exclusive with regular keymaps
with dead keys.
https://bugzilla.gnome.org/show_bug.cgi?id=704937
Kalev Lember [Mon, 29 Jul 2013 09:23:58 +0000 (11:23 +0200)]
listbox: handle row sensitivity
When a row is insensitive, don't emit button press events and avoid
prelighting it.
Murray Cumming [Mon, 29 Jul 2013 09:51:25 +0000 (11:51 +0200)]
docs: Minor grammatical corrections.
Chun-wei Fan [Mon, 29 Jul 2013 09:10:00 +0000 (17:10 +0800)]
Update the Visual Studio Property Sheets
"Install" the gtklistboxaccessible.h header file... it's a public header
of gtk-a11y
Simon Feltman [Sun, 28 Jul 2013 20:16:16 +0000 (13:16 -0700)]
Add explicit transfer annotations to gtk_icon_view_get_cursor
The cell out argument to gtk_icon_view_get_cursor is a pass-through
for gtk_cell_area_get_focus_cell which is transfer none. Without
this explicit annotation, transfer full is defaulted and introspection
bindings will assume ownership of the GtkIconViews reference to the
cell, causing crashes. Additionally add explicit transfer full to
the path parameter because it is expected the caller will free the
returned memory.
https://bugzilla.gnome.org/show_bug.cgi?id=704700
Chun-wei Fan [Mon, 29 Jul 2013 03:22:46 +0000 (11:22 +0800)]
Update Visual Studio Property Sheets
"Install" the newly-deprecated headers accordingly and also "install" the
newly-introduced public headers
Matthias Clasen [Mon, 29 Jul 2013 01:51:45 +0000 (21:51 -0400)]
gtk3-demo: Adapt to GtkSearchEntry api changes
Connect to ::search-changed instead of ::changed.
Matthias Clasen [Mon, 29 Jul 2013 01:49:37 +0000 (21:49 -0400)]
Change the way GtkSearchEntry does delayed change notification
We add a GtkSearchEntry::search-changed signal which gets emitted
with a 150 millisecond delay. The ::change signal goes back to its
expected semantics.
https://bugzilla.gnome.org/show_bug.cgi?id=700229
Matthias Clasen [Mon, 29 Jul 2013 00:21:28 +0000 (20:21 -0400)]
GtkSearchEntry: improve clear icon implementation
Instead of connecting to our own signal, which is generally
considered somewhat unclean, override the class handler
for the icon-release signal.
Matt Barnes [Sun, 28 Jul 2013 20:09:58 +0000 (16:09 -0400)]
GtkApplication: Do not assert sm_proxy != NULL in inhibit functions
Applications have no way of finding out if a session manager proxy was
successfully created in gtk_application_startup_session_dbus(), so it's not
appropriate for certain public GtkApplication functions to be asserting the
presence of a session manager proxy as if it were a programmer error.
This affects:
gtk_application_inhibit()
gtk_application_is_inhibited()
If sm_proxy is NULL, the function should just return silently.
In the case of gtk_application_uninhibit(), the application should only be
calling this if it obtained a valid cookie, which implies the presence of a
session manager proxy. I noted that with a comment.
https://bugzilla.gnome.org/show_bug.cgi?id=701365
Matthias Clasen [Sun, 28 Jul 2013 00:33:08 +0000 (20:33 -0400)]
example: Use declared callbacks where possible
Replace manual signal connections with signal handlers
declared in the ui file, where possible.
Ryan Lortie [Sat, 27 Jul 2013 22:15:17 +0000 (18:15 -0400)]
Mention of -rdynamic in GtkBuilder lookup error
We toss a g_warning() if we can't find the user's signal handler. A good chunk
of the time this will be because they didn't use -rdynamic. Add a note about
that.
Takuro Ashie [Sat, 27 Jul 2013 01:34:39 +0000 (10:34 +0900)]
imquartz: Fallback to slave IM context if no NSEvent exists.
When an application translates a key event and drop its native event
before passing to imquartz, it can't recognize the NSEvent. On this
case imquartz doesn't emit any signals such as "commit" signal so
that the application doesn't insert any text. To avoid no response,
at least imquartz should fallback to slave GtkIMContextSimple.
https://bugzilla.gnome.org/show_bug.cgi?id=694273#c27
(cherry picked from commit
c064e188943ad6bd79d8476a0f53e27bfddb4a1f)
John Ralls [Sat, 27 Jul 2013 21:24:53 +0000 (14:24 -0700)]
Fix broken quartz build due to deprecation of gtkstock.h
Ek Kato [Sat, 27 Jul 2013 20:55:39 +0000 (13:55 -0700)]
Bug 701332 - Patch for minor glitch in NSTextInput
(cherry picked from commit
43ed68aa33b8e5efde01f7ef10d081b979cd451f)
Murray Cumming [Fri, 26 Jul 2013 20:16:12 +0000 (22:16 +0200)]
docs: gtk_icon_theme_lookup_by_gicon_for_scale() is new
It was added in commit
58adb70d43dfc6a10dde5847850c8a58e0c08137 .
Alexandre Quessy [Sat, 27 Jul 2013 11:12:26 +0000 (07:12 -0400)]
fix a typo in a comment in gtkwindow.c